import 'dart:async';
import 'dart:convert';

import 'package:test/test.dart';

import '../bin/file_ws_server.dart';


void main() {
  test('calculate', () {
    expect(6*7, 42);
  });

  test("heart", (){
    final hb = HeartbeatMessage(HeartbeatType.ping).toJson();
    final j = json.encode(hb);
    print(j);
  });

  test("timer", testTimer);

}

void testTimer(){
  Timer? timer;
  timer = Timer(Duration(seconds: 3), (){
    print("callback");
  });

}
